home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / unace < prev    next >
Encoding:
Text File  |  2010-11-16  |  593 b   |  30 lines

  1. # unace(1) completion
  2.  
  3. have unace &&
  4. _unace()
  5. {
  6.     local cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  10.  
  11.     if [[ "$cur" == -* ]] ; then
  12.         COMPREPLY=( $( compgen -W '-c -c- -f -f- -o -o- -p -y -y-' -- "$cur" ) )
  13.     else
  14.         if [ $COMP_CWORD -eq 1 ]; then
  15.             COMPREPLY=( $( compgen -W 'e l t v x' -- "$cur" ) )
  16.         else
  17.             _filedir '@(ace|ACE)'
  18.         fi
  19.     fi
  20. } &&
  21. complete -F _unace -o filenames unace
  22.  
  23. # Local variables:
  24. # mode: shell-script
  25. # sh-basic-offset: 4
  26. # sh-indent-comment: t
  27. # indent-tabs-mode: nil
  28. # End:
  29. # ex: ts=4 sw=4 et filetype=sh
  30.